home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!escan.demon.co.uk
- From: Bill Birrell <bill@escan.demon.co.uk>
- Newsgroups: comp.lang.c
- Subject: Check if a file exists?
- Date: Mon, 15 Apr 1996 12:57:00
- Message-ID: <829565947.AA00181@escan.demon.co.uk>
- Reply-To: bill@escan.demon.co.uk
- X-NNTP-Posting-Host: escan.demon.co.uk
- X-Mail2News-Path: escan.demon.co.uk
-
- > That would be implemented in Unix using stat(),
- > however that isn't a standard
- > C library function.
-
- That's odd, Lawrence. K&R Edn 1, Ch 8, P 170 says it is, as part of the
- unix system interface, and refers to sys/stat.h for the definition of the stat
- structure.
- Compatibility is listed as:-
-
- unix,
- 16 bit: dos, qwin,win, win dll
- 32 bit: Dos32X
-
- Note:
- use _stat for compatibility with ANSI naming conventions of non-ANSI
- functions. Use stat and link with OLDNAMES.LIB for UNIX compatibility.
-
- --
- Regards,
- Bill Birrell.
- internet: bill@escan.demon.co.uk
-